<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Ptlib-2.10.11
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="pth.html" title="Pth-2.0.7">Prev</a>
          <p>
            Pth-2.0.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="qca.html" title="Qca-2.2.1">Next</a>
          <p>
            Qca-2.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ptlib" name="ptlib"></a>Ptlib-2.10.11
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Ptlib
        </h2>
        <p>
          The <span class="application">Ptlib</span> (Portable Tools Library)
          package contains a class library that has its genesis many years
          ago as PWLib (portable Windows Library), a method to produce
          applications to run on various platforms.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz">
                http://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz">
                ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/ptlib-2.10.11.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 3ffdf89170dbfa6d29a015ef8741a4e4
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.4 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 81 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.9 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/ptlib-2.10.11-bison_fixes-2.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/ptlib-2.10.11-bison_fixes-2.patch</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/ptlib-2.10.11-openssl-1.1.0-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/ptlib-2.10.11-openssl-1.1.0-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Ptlib Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../multimedia/alsa-lib.html" title=
          "alsa-lib-1.2.1.2">alsa-lib-1.2.1.2</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/cyrus-sasl.html" title=
          "Cyrus SASL-2.1.27">Cyrus SASL-2.1.27</a>, <a class="xref" href=
          "lua.html" title="Lua-5.3.5">Lua-5.3.5</a>, <a class="xref" href=
          "../server/openldap.html" title=
          "OpenLDAP-2.4.49">OpenLDAP-2.4.49</a>, <a class="xref" href=
          "../multimedia/pulseaudio.html" title=
          "PulseAudio-13.0">PulseAudio-13.0</a>, <a class="xref" href=
          "../multimedia/sdl.html" title="SDL-1.2.15">SDL-1.2.15</a>,
          <a class="xref" href="unixodbc.html" title=
          "unixODBC-2.3.7">unixODBC-2.3.7</a> (currently broken, see
          <span class="emphasis"><em>Command Explanations</em></span> below),
          <a class="xref" href="../multimedia/v4l-utils.html" title=
          "v4l-utils-1.18.0">v4l-utils-1.18.0</a>, <a class="ulink" href=
          "http://sourceforge.net/projects/libdc1394/">libdc1394</a>, and
          <a class="ulink" href="http://www.linux1394.org/">libraw1394</a>,
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/ptlib">http://wiki.linuxfromscratch.org/blfs/wiki/ptlib</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Ptlib
        </h2>
        <p>
          Fix a build issue with gcc-7.1.0 and later:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
    src/ptclib/podbc.cxx &amp;&amp;
    
sed -i '/\/ioctl.h/a#include &lt;sys/uio.h&gt;' src/ptlib/unix/channel.cxx</kbd>
</pre>
        <p>
          Fix an issue with make-4.3 and later (breaks the build with
          previous versions of make):
        </p>
        <pre class="userinput">
<kbd class="command">sed 's/\\#/#/' -i make/common.mak</kbd>
</pre>
        <p>
          Install <span class="application">Ptlib</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../ptlib-2.10.11-openssl-1.1.0-1.patch &amp;&amp;
patch -Np1 -i ../ptlib-2.10.11-bison_fixes-2.patch &amp;&amp;

./configure --prefix=/usr  \
            --disable-odbc &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
chmod -v 755 /usr/lib/libpt.so.2.10.11</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-odbc</code></em>: This
          parameter prevents the use of <a class="xref" href="unixodbc.html"
          title="unixODBC-2.3.7">unixODBC-2.3.7</a>, whose libraries conflict
          with <span class="application">ptlib</span>. It is not needed if
          <a class="xref" href="unixodbc.html" title=
          "unixODBC-2.3.7">unixODBC-2.3.7</a> is not installed.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">ptlib-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libpt.so and libpt_s.a</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/ptclib, /usr/include/ptlib,
              /usr/lib/ptlib-2.10.11, and /usr/share/ptlib</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="ptlib-config" name="ptlib-config"></a><span class=
                    "term"><span class=
                    "command"><strong>ptlib-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    determines the compile and linker flags that should be
                    used to compile and link programs that use <code class=
                    "filename">libpt</code>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpt" name="libpt"></a><span class=
                    "term"><code class="filename">libpt.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the <span class="application">Ptlib</span> API
                    functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 18:46:23 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="pth.html" title="Pth-2.0.7">Prev</a>
          <p>
            Pth-2.0.7
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="qca.html" title="Qca-2.2.1">Next</a>
          <p>
            Qca-2.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
